﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace DICOM_PROJECT.Models
{
    public class Visit
    {
        [Display(Name = "Visit ID")]
        public int VisitID { get; set; }

        [Display(Name = "Patient ID")]
        [ForeignKey("UserProfile")]
        public int UserProfileID { get; set; }

        [Display(Name = "Create Doctor ID")]
        public int CreateDoctorID { get; set; }

        [Display(Name = "CreateDate")]
        [DataType(DataType.DateTime)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime CreateDate { get; set; }

        [Display(Name = "Update Doctor ID")]
        public int? UpdateDoctorID { get; set; }

        [Display(Name = "Update Date")]
        [DataType(DataType.DateTime)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? UpdateDate { get; set; }

        [Display(Name = "Symptom")]
        public string Symptom { get; set; }

        [Display(Name = "Diagnosis")]
        public string Diagnosis { get; set; }

        [Display(Name = "Treatment")]
        public string Treatment { get; set; }

        public virtual UserProfile UserProfile { get; set; }

        [ForeignKey("CreateDoctorID")]
        public virtual Doctor CreateDoctor { get; set; }

        [ForeignKey("UpdateDoctorID")]
        public virtual Doctor UpdateDoctor { get; set; }
    }
}